package cn.cqie.attendance.student.domian;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "leavelog" )
@Alias("leavelog")
@NoArgsConstructor
@AllArgsConstructor
public class LeaveLog {

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 请假学生 */
    @ApiModelProperty(value = "请假学生")
    private Long stuId;

    /** 0 审批不通过 1 审批中 2 审批通过 */
    @ApiModelProperty(value = "0 审批不通过 1 审批中 2 审批通过")
    private int leaveStatus;

    /** 审核人 */
    @ApiModelProperty(value = "审核人")
    private Long teacherId;

    /** 审批时间 */
    @ApiModelProperty(value = "审批时间")
    private Date transitTime;

    /** 请假主表 */
    @ApiModelProperty(value = "请假主表")
    private Long leaveId;

    /** 不通过原因 */
    @ApiModelProperty(value = "不通过原因")
    private String failedDetail;

}
